cmake_minimum_required(VERSION 3.5)
project(test_shudo)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) 

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
  message("debug mode")
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -Wall -Wextra -pedantic")
  add_definitions(-D_DEBUG_)
else()
  message("release mode")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Wextra -pedantic")
endif (CMAKE_BUILD_TYPE STREQUAL "Debug") 

add_executable(sudoku
  src/sudoku.cpp
  src/sudokuIO.cpp
  src/sudokuMain.cpp
)


